import request from '@/utils/request.js'

// 查询行业动态新闻列表
export function listTrends(query) {
    return request({
        url: '/business/trends/list',
        method: 'get',
        params: query
    })
}

// 查询行业动态新闻详细
export function getTrends(id) {
    return request({
        url: '/business/trends/' + id,
        method: 'get'
    })
}

// 新增行业动态新闻
export function addTrends(data) {
    return request({
        url: '/business/trends',
        method: 'post',
        data: data
    })
}

// 修改行业动态新闻
export function updateTrends(data) {
    return request({
        url: '/business/trends',
        method: 'put',
        data: data
    })
}

// 删除行业动态新闻
export function delTrends(id) {
    return request({
        url: '/business/trends/' + id,
        method: 'delete'
    })
}

// 审核
export function reviewTrends(data) {
    return request({
        url: '/business/trends/review',
        method: 'put',
        data: data
    })
}
